import request from '@/utils/request';
const baseURL = process.env.VUE_APP_BASE_API_DATA_TABLE;
export {baseURL}

// 获取 检测项集合 post
export function queryItems(data){
    return request({
        url: '/api-fol/comCodeLists/rcode',
        method: 'post',
        data: data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 获取 检测项 正常检测范围值范围
export function getItemRanges(data){
    return request({
        url: '/api-jst/standard/getPersonalServiceRecord',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 获取 检测项 正常检测范围值范围 新
export function getItemRangesNew(){
    return request({
        url: '/api-jst/standard/getNormalServiceRecord',
        method: 'get',
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}

// 获取 检测项 分类数据 post
export function getData(name,data){

    return request({
        url: '/api-check/'+name+'/list',
        method: 'post',
        data: data,
        baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
    })
}
// 展示图片
export function showthepicture(data) {
  return request({
    url: 'api-jst/jst/getEcgImage',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function displayphotos(data) {
  return request({
    url: 'api-jst/jst/queryPatFiles',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
